home *** CD-ROM | disk | FTP | other *** search
-
- {released to public domain 3/16/89 by author Michael Day}
-
- program tested; {a program to test GwEdit}
-
- uses crti,graph,gstart,gwedit,gwcurse,AreaWr;
-
- var A1,X,Y,Wide,CPos : integer;
- Ps,S : string;
- Edit : boolean;
- C : ColorRec;
- Ch : char;
- A : rect;
-
-
- {--------------------------------}
- begin
- if not grafstart then BombOut(2);
- Edit := true;
- A1 := GetMaxY div 4;
- X := 14*8;
- Y := A1*2 {19*8};
- Wide := 40;
- CPos := 1;
- if DispType = EGADisp then
- SetColorRec(C,OffLeftWrite,yellow,blue,SolidFill)
- else
- SetColorRec(C,OffLeftWrite,white,black,SolidFill);
- SetRect(A,10*8,A1*3,64*8,(A1*3)+8);
-
- outtextxy(35*8,A1,'Hello world');
- GcursorType(NormalGcursor);
- circle(GetMaxX shr 1,GetMaxY shr 1,199);
-
- S := 'Edit this string';
-
- repeat
- Ch := GwRead(X,Y,Wide,Cpos, Edit,C,S);
-
- Ps := 'You entered:'+S;
- AreaWrite(Ps,A,C);
- until Ch = #$1b;
-
- SetGraphOff;
- end.